import { defineStore } from "pinia";

export const useStore = defineStore({
  id: "main",
  state: () => {
    return {
      count: 0,
    };
  },
  getters: {
    doubleCount: (state) => state.count * 2,
  },

  actions: {
    countThird() {
      this.count *=3
    }
  },
})
